<?php

namespace G4T\Util;

class Snippet
{
    const ENCODING = "UTF-8";

    public static function getSnippet($text, array $words)
    {
        if (!count($words)) {
            return false;
        }
        $text = mb_substr($text, 0, 200, self::ENCODING);
        return $text;
    }
}
